package com.smart.campus.school.mapper;

import java.util.List;
import com.smart.campus.school.domain.AttendanceRule;
import org.springframework.stereotype.Repository;

/**
 * 考勤规则Mapper接口
 * 
 * @author Zhihe.Li
 * @date 2020-10-21
 */
@Repository
public interface AttendanceRuleMapper 
{
    /**
     * 查询考勤规则
     * 
     * @param id 考勤规则ID
     * @return 考勤规则
     */
    public AttendanceRule selectAttendanceRuleById(Long id);

    /**
     * 查询考勤规则列表
     * 
     * @param attendanceRule 考勤规则
     * @return 考勤规则集合
     */
    public List<AttendanceRule> selectAttendanceRuleList(AttendanceRule attendanceRule);

    /**
     * 新增考勤规则
     * 
     * @param attendanceRule 考勤规则
     * @return 结果
     */
    public int insertAttendanceRule(AttendanceRule attendanceRule);

    /**
     * 修改考勤规则
     * 
     * @param attendanceRule 考勤规则
     * @return 结果
     */
    public int updateAttendanceRule(AttendanceRule attendanceRule);

    /**
     * 删除考勤规则
     * 
     * @param id 考勤规则ID
     * @return 结果
     */
    public int deleteAttendanceRuleById(Long id);

    /**
     * 批量删除考勤规则
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAttendanceRuleByIds(String[] ids);
}
